home *** CD-ROM | disk | FTP | other *** search
Makefile | 2002-10-27 | 13.6 KB | 473 lines |
- # $Id: Makefile.in,v 1.36 2002/01/20 01:49:17 tom Exp $
- ##############################################################################
- # Copyright (c) 1998,1999,2000,2001,2002 Free Software Foundation, Inc. #
- # #
- # Permission is hereby granted, free of charge, to any person obtaining a #
- # copy of this software and associated documentation files (the "Software"), #
- # to deal in the Software without restriction, including without limitation #
- # the rights to use, copy, modify, merge, publish, distribute, distribute #
- # with modifications, sublicense, and/or sell copies of the Software, and to #
- # permit persons to whom the Software is furnished to do so, subject to the #
- # following conditions: #
- # #
- # The above copyright notice and this permission notice shall be included in #
- # all copies or substantial portions of the Software. #
- # #
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
- # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
- # DEALINGS IN THE SOFTWARE. #
- # #
- # Except as contained in this notice, the name(s) of the above copyright #
- # holders shall not be used in advertising or otherwise to promote the sale, #
- # use or other dealings in this Software without prior written #
- # authorization. #
- ##############################################################################
- #
- # Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
- #
- # Makefile for form source code.
- #
- # This makes the following:
- # libraries (normal/debug/profile/shared)
- #
- # The variable 'srcdir' refers to the source-distribution, and can be set with
- # the configure script by "--srcdir=DIR".
- #
- # The rules are organized to produce the libraries for the configured models,
-
- # turn off _all_ suffix rules; we'll generate our own
- .SUFFIXES:
-
- SHELL = /bin/sh
- THIS = Makefile
-
- MODEL = normal
- DESTDIR =
- srcdir = .
- prefix = /gg
- exec_prefix = ${prefix}
- bindir = ${exec_prefix}/bin
- libdir = ${exec_prefix}/lib
- includedir = $(prefix)/include/ncurses
-
- LIBTOOL =
-
- INSTALL = /bin/install -c
- INSTALL_LIB = /bin/install -c -m 644
- INSTALL_PROG = @INSTALL_PROG@
- INSTALL_DATA = ${INSTALL} -m 644
-
- AR = ar
- AR_OPTS = rv
- AWK = gawk
- LD = ld
- LN_S = ln -s
-
- CC = gcc
- CPP = gcc -E
- CFLAGS = -O2 -fomit-frame-pointer -m68020-60 -ffast-math
-
- CPPFLAGS = -DNDEBUG -I. -I../include -I$(includedir) \
- -DHAVE_CONFIG_H
-
- CCFLAGS = $(CPPFLAGS) $(CFLAGS)
-
- CFLAGS_LIBTOOL = $(CCFLAGS)
- CFLAGS_NORMAL = $(CCFLAGS)
- CFLAGS_DEBUG = $(CCFLAGS) -g -DTRACE
- CFLAGS_PROFILE = $(CCFLAGS) -pg
- CFLAGS_SHARED = $(CCFLAGS) unknown
-
- CFLAGS_DEFAULT = $(CFLAGS_NORMAL)
-
- LINK = $(LIBTOOL) $(CC)
- LDFLAGS = -s -lm
-
- SHLIB_DIRS = -L../lib
- SHLIB_LIST = $(SHLIB_DIRS) -lncurses
-
- MK_SHARED_LIB = echo unknown
-
- NCURSES_MAJOR = 5
- NCURSES_MINOR = 3
- REL_VERSION = 5.3
- ABI_VERSION = 5
-
- RANLIB = ranlib
-
- IMPORT_LIB =
- SHARED_LIB =
- LIBRARIES = ../lib/libform.a
-
- LINT =
- LINT_OPTS =
- LINT_LIBS = -lform -lncurses
-
- AUTO_SRC = \
- ../include/form.h
-
- ################################################################################
- all \
- libs \
- install :: $(AUTO_SRC) $(LIBRARIES)
-
- sources : $(AUTO_SRC)
-
- $(DESTDIR)$(bindir) \
- $(DESTDIR)$(libdir) :
- sh $(srcdir)/../mkinstalldirs $@
-
- # make copies to simplify include-paths while still keeping form's include
- # file in this directory.
- ../include/form.h : $(srcdir)/form.h
- -rm -f $@
- cp $(srcdir)/form.h $@
-
- FORM_PRIV_H = \
- $(srcdir)/form.priv.h \
- $(srcdir)/form.h \
- ../include/mf_common.h \
- ../include/curses.h \
- ../include/eti.h
-
- tags:
- ctags *.[ch]
-
- #TAGS:
- # etags *.[ch]
-
- mostlyclean ::
- -rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
-
- clean :: mostlyclean
- -rm -f $(AUTO_SRC)
-
- distclean :: clean
- -rm -f Makefile
-
- realclean :: distclean
-
- ../include/mf_common.h \
- ../include/eti.h :
- cd ../menu && $(MAKE) $@
-
- ###############################################################################
- # The remainder of this file is automatically generated during configuration
- ###############################################################################
-
- # generated by mk-0th.awk
-
- .SUFFIXES: .c .cc .h .i .ii
- .c.i :
- $(CPP) $(CPPFLAGS) $< >$@
- .cc.ii :
- $(CPP) $(CPPFLAGS) $< >$@
- .h.i :
- $(CPP) $(CPPFLAGS) $< >$@
-
- C_SRC = \
- $(srcdir)/fld_arg.c \
- $(srcdir)/fld_attr.c \
- $(srcdir)/fld_current.c \
- $(srcdir)/fld_def.c \
- $(srcdir)/fld_dup.c \
- $(srcdir)/fld_ftchoice.c \
- $(srcdir)/fld_ftlink.c \
- $(srcdir)/fld_info.c \
- $(srcdir)/fld_just.c \
- $(srcdir)/fld_link.c \
- $(srcdir)/fld_max.c \
- $(srcdir)/fld_move.c \
- $(srcdir)/fld_newftyp.c \
- $(srcdir)/fld_opts.c \
- $(srcdir)/fld_pad.c \
- $(srcdir)/fld_page.c \
- $(srcdir)/fld_stat.c \
- $(srcdir)/fld_type.c \
- $(srcdir)/fld_user.c \
- $(srcdir)/frm_cursor.c \
- $(srcdir)/frm_data.c \
- $(srcdir)/frm_def.c \
- $(srcdir)/frm_driver.c \
- $(srcdir)/frm_hook.c \
- $(srcdir)/frm_opts.c \
- $(srcdir)/frm_page.c \
- $(srcdir)/frm_post.c \
- $(srcdir)/frm_req_name.c \
- $(srcdir)/frm_scale.c \
- $(srcdir)/frm_sub.c \
- $(srcdir)/frm_user.c \
- $(srcdir)/frm_win.c \
- $(srcdir)/fty_alnum.c \
- $(srcdir)/fty_alpha.c \
- $(srcdir)/fty_enum.c \
- $(srcdir)/fty_int.c \
- $(srcdir)/fty_ipv4.c \
- $(srcdir)/fty_num.c \
- $(srcdir)/fty_regex.c
-
- # Producing llib-lform is time-consuming, so there's no direct-dependency for
- # it in the lintlib rule. We'll only remove in the cleanest setup.
- clean ::
- rm -f llib-lform.*
-
- realclean ::
- rm -f llib-lform
-
- llib-lform : $(C_SRC)
- cproto -a -l -DLINT $(CPPFLAGS) $(C_SRC) >$@
-
- lintlib :
- sh $(srcdir)/../misc/makellib form $(CPPFLAGS)
- lint :
- $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(C_SRC) $(LINT_LIBS)
-
- # generated by mk-1st.awk
-
- NORMAL_OBJS = \
- ../objects/fld_arg.o \
- ../objects/fld_attr.o \
- ../objects/fld_current.o \
- ../objects/fld_def.o \
- ../objects/fld_dup.o \
- ../objects/fld_ftchoice.o \
- ../objects/fld_ftlink.o \
- ../objects/fld_info.o \
- ../objects/fld_just.o \
- ../objects/fld_link.o \
- ../objects/fld_max.o \
- ../objects/fld_move.o \
- ../objects/fld_newftyp.o \
- ../objects/fld_opts.o \
- ../objects/fld_pad.o \
- ../objects/fld_page.o \
- ../objects/fld_stat.o \
- ../objects/fld_type.o \
- ../objects/fld_user.o \
- ../objects/frm_cursor.o \
- ../objects/frm_data.o \
- ../objects/frm_def.o \
- ../objects/frm_driver.o \
- ../objects/frm_hook.o \
- ../objects/frm_opts.o \
- ../objects/frm_page.o \
- ../objects/frm_post.o \
- ../objects/frm_req_name.o \
- ../objects/frm_scale.o \
- ../objects/frm_sub.o \
- ../objects/frm_user.o \
- ../objects/frm_win.o \
- ../objects/fty_alnum.o \
- ../objects/fty_alpha.o \
- ../objects/fty_enum.o \
- ../objects/fty_int.o \
- ../objects/fty_ipv4.o \
- ../objects/fty_num.o \
- ../objects/fty_regex.o
-
- $(NORMAL_OBJS) : ../include/ncurses_cfg.h ./form.priv.h
-
- ../lib/libform.a : $(NORMAL_OBJS)
- $(AR) $(AR_OPTS) $@ $?
- $(RANLIB) $@
-
- install \
- install.libs \
- install.form :: $(DESTDIR)$(libdir) ../lib/libform.a
- @echo installing ../lib/libform.a as $(DESTDIR)$(libdir)/libform.a
- $(INSTALL_DATA) ../lib/libform.a $(DESTDIR)$(libdir)/libform.a
- $(RANLIB) $(DESTDIR)$(libdir)/libform.a
-
- uninstall \
- uninstall.libs \
- uninstall.form ::
- @echo uninstalling $(DESTDIR)$(libdir)/libform.a
- -@rm -f $(DESTDIR)$(libdir)/libform.a
-
- clean ::
- -rm -f ../lib/libform.a
-
- mostlyclean::
- -rm -f $(NORMAL_OBJS)
-
- # generated by mk-2nd.awk
-
-
- ../objects/fld_arg.o : $(srcdir)/fld_arg.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_arg.c
-
- ../objects/fld_attr.o : $(srcdir)/fld_attr.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_attr.c
-
- ../objects/fld_current.o : $(srcdir)/fld_current.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_current.c
-
- ../objects/fld_def.o : $(srcdir)/fld_def.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_def.c
-
- ../objects/fld_dup.o : $(srcdir)/fld_dup.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_dup.c
-
- ../objects/fld_ftchoice.o : $(srcdir)/fld_ftchoice.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftchoice.c
-
- ../objects/fld_ftlink.o : $(srcdir)/fld_ftlink.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_ftlink.c
-
- ../objects/fld_info.o : $(srcdir)/fld_info.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_info.c
-
- ../objects/fld_just.o : $(srcdir)/fld_just.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_just.c
-
- ../objects/fld_link.o : $(srcdir)/fld_link.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_link.c
-
- ../objects/fld_max.o : $(srcdir)/fld_max.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_max.c
-
- ../objects/fld_move.o : $(srcdir)/fld_move.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_move.c
-
- ../objects/fld_newftyp.o : $(srcdir)/fld_newftyp.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_newftyp.c
-
- ../objects/fld_opts.o : $(srcdir)/fld_opts.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_opts.c
-
- ../objects/fld_pad.o : $(srcdir)/fld_pad.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_pad.c
-
- ../objects/fld_page.o : $(srcdir)/fld_page.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_page.c
-
- ../objects/fld_stat.o : $(srcdir)/fld_stat.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_stat.c
-
- ../objects/fld_type.o : $(srcdir)/fld_type.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_type.c
-
- ../objects/fld_user.o : $(srcdir)/fld_user.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fld_user.c
-
- ../objects/frm_cursor.o : $(srcdir)/frm_cursor.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_cursor.c
-
- ../objects/frm_data.o : $(srcdir)/frm_data.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_data.c
-
- ../objects/frm_def.o : $(srcdir)/frm_def.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_def.c
-
- ../objects/frm_driver.o : $(srcdir)/frm_driver.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_driver.c
-
- ../objects/frm_hook.o : $(srcdir)/frm_hook.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_hook.c
-
- ../objects/frm_opts.o : $(srcdir)/frm_opts.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_opts.c
-
- ../objects/frm_page.o : $(srcdir)/frm_page.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_page.c
-
- ../objects/frm_post.o : $(srcdir)/frm_post.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_post.c
-
- ../objects/frm_req_name.o : $(srcdir)/frm_req_name.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_req_name.c
-
- ../objects/frm_scale.o : $(srcdir)/frm_scale.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_scale.c
-
- ../objects/frm_sub.o : $(srcdir)/frm_sub.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_sub.c
-
- ../objects/frm_user.o : $(srcdir)/frm_user.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_user.c
-
- ../objects/frm_win.o : $(srcdir)/frm_win.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/frm_win.c
-
- ../objects/fty_alnum.o : $(srcdir)/fty_alnum.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alnum.c
-
- ../objects/fty_alpha.o : $(srcdir)/fty_alpha.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_alpha.c
-
- ../objects/fty_enum.o : $(srcdir)/fty_enum.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_enum.c
-
- ../objects/fty_int.o : $(srcdir)/fty_int.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_int.c
-
- ../objects/fty_ipv4.o : $(srcdir)/fty_ipv4.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_ipv4.c
-
- ../objects/fty_num.o : $(srcdir)/fty_num.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_num.c
-
- ../objects/fty_regex.o : $(srcdir)/fty_regex.c \
- $(FORM_PRIV_H)
- cd ../objects; $(LIBTOOL) $(CC) $(CFLAGS_NORMAL) -c ../form/fty_regex.c
-
- $(DESTDIR)$(includedir) :
- sh $(srcdir)/../mkinstalldirs $@
-
- install \
- install.libs \
- install.includes :: $(AUTO_SRC) $(DESTDIR)$(includedir) \
- $(srcdir)/form.h
- @ (cd $(DESTDIR)$(includedir) && rm -f form.h) ; ../headers.sh $(INSTALL_DATA) $(DESTDIR)$(includedir) $(srcdir) $(srcdir)/form.h
-
- uninstall \
- uninstall.libs \
- uninstall.includes ::
- -@ (cd $(DESTDIR)$(includedir) && rm -f form.h)
- depend : $(AUTO_SRC)
- makedepend -- $(CPPFLAGS) -- $(C_SRC)
-
- # DO NOT DELETE THIS LINE -- make depend depends on it.
-